package com.frxuexi.lib_base.net

import com.frxuexi.lib_base.entity.CommentBean
import com.frxuexi.lib_base.entity.CommentBeanItem
import com.frxuexi.lib_base.entity.MyParkBean
import com.frxuexi.lib_base.entity.NewsBean
import com.frxuexi.lib_base.entity.NoticeBean
import com.frxuexi.lib_base.entity.ParkBean
import com.frxuexi.lib_base.entity.ParkBeanItem
import com.frxuexi.lib_base.entity.RepairBean
import com.frxuexi.lib_base.entity.RepairBeanItem
import com.frxuexi.lib_base.entity.Res
import com.frxuexi.lib_base.entity.SignBean
import com.frxuexi.lib_base.entity.SignBeanItem
import com.frxuexi.lib_base.entity.TaskBean
import com.frxuexi.lib_base.entity.UserBean
import com.frxuexi.lib_base.entity.VideoBean
import com.frxuexi.lib_base.entity.VisitBean
import com.frxuexi.lib_base.entity.VisitBeanItem
import kotlinx.coroutines.flow.Flow
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.PATCH
import retrofit2.http.POST
import retrofit2.http.PUT
import retrofit2.http.Part
import retrofit2.http.Path
import retrofit2.http.Query

interface VideoApiService {

    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getVideos(@Query("page")page:Int,@Query("pagesize")pagesize:Int):Res<VideoBean>

    @POST("/comment/publishComment")
    suspend fun addComment(@Body body: RequestBody):Res<CommentBeanItem>

    @GET("/comment/getCommentByUserId?datatype=0")
    suspend fun getComment(@Query("itemid")itemid:Int?):Res<CommentBean>

}